package com.ming.easyDevelop.mappers;

import com.ming.easyDevelop.mappers.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
/**
 * @Description  Mapper接口
 * @Author ming
 * @Date 2024/07/10
 */
@Mapper
public interface CategoriesMapper<T,P> extends BaseMapper {
	/**
	 * 根据CategoryID查询
	 */
	T selectByCategoryID(@Param("categoryID") Integer categoryID);
	/**
	 * 根据CategoryID更新
	 */
	Long updateByCategoryID(@Param("bean") T t, @Param("categoryID") Integer categoryID);
	/**
	 * 根据CategoryID删除
	 */
	Long deleteByCategoryID(@Param("categoryID") Integer categoryID);
	/**
	 * 根据CategoryName查询
	 */
	T selectByCategoryName(@Param("categoryName") String categoryName);
	/**
	 * 根据CategoryName更新
	 */
	Long updateByCategoryName(@Param("bean") T t, @Param("categoryName") String categoryName);
	/**
	 * 根据CategoryName删除
	 */
	Long deleteByCategoryName(@Param("categoryName") String categoryName);
}